<!--#include file="admin/Includes/constants.asp"-->
<!--#include file="admin/Includes/validate.asp"-->
<!--#include file="admin/Includes/Send_Mail.asp"-->
<%
Dim origmail_source, origmail_from,  origmail_subject, origmail_body, receiver, Icon
Dim reqtype, reqsubject
Dim hideform, strMes, Action
dim email, fname, pass

Dim Destination, strQuery
Dim ref

Destination = Request("d")
strQuery = Request("qs")
ref = "d=" & Server.URlEncode(Destination) & "&qs=" & Server.UrlEncode(strQuery)


Action = request("act")

If Action <> "" Then
	email = getData("rqfrom_em")
	
	strSQL = "{CALL a_password_sel ('"& Email &"')}"
'	response.end
	Exec(strSQl)
	
	IF Not RS.EOF Then
		hideform = true		
		fname = RS(0)		
		Pass = RS(1)
		
		origmail_from = "Ban quản trị "
		origmail_to = Email
		origmail_subject = Domain_Name&": Thông tin đăng nhập."
		origmail_body = "Chào " & fname& ",<br><br>"  &_
						 
						"Cám ơn sự ghé thăm <a href='http://www.thoitrang.com' target='_new'>" & Domain_Name &"</a> của bạn."& "<br>" &_
						"Dưới đây là thông tin đăng nhập của bạn."& "<br><br>" &_
						
						"Email đăng nhập: " & Email & "<br>" &_
						"Mật khẩu: "& Pass & "<br><br>" &_
									
						"Thân mến," & "<br><br>" &_
						
						"Thoitrang.com" 
						
		origmail_body = StripHardBreaks(origmail_body)			
'		response.write origmail_body			
		call sentMail(strSMTP, "support@thoitrang.com", origmail_from, origmail_to, origmail_subject, origmail_body)							
		
		Icon = "<img src='hinh-thoi-trang/ico_alert.gif' alt='' width='20' height='20' border='0'>"
		strMes = "Thông tin đăng nhập của bạn đã được gởi tới địa chỉ " & Email & "."		
	Else
		hideform = false
		Icon = "<img src='hinh-thoi-trang/ico_alert.gif' alt='' width='20' height='20' border='0'>"				
		strMes = "Xin lỗi """ & Email & """ này không tồn tại."
	End If
End If	

'Close connection
CloseCon

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<Meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Thoitrang.com-quen mat ma</title>
	<Meta name="keywords" content="thoi trang, thoitrang, thoi trang tre, thoi trang viet nam"> 
	<Meta name="description" content="Tap chi truc tuyen thoi trang viet nam thoitrang.com">
	<Meta http-equiv=" content-language" content ="vi">
	<Meta name="Robots" content="noindex,nofollow">
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="STYLESHEET" type="text/css" href="system/styles.css">
    <script language="JavaScript" type="text/javascript" src="admin/javascripts/validateVN.js"></script>		
</head>
<body>
<div id="container">
<div id="bt2"><img src="hinh-thoi-trang/bg_top.gif" width="1049" height="20"></div>
<div id="tp">
<table border="0" cellpadding="0" cellspacing="0" width="990" align="center">	
	<!--top-->
	<!--#include file="system/top.asp" -->
	<!--/top-->
	<tr bgcolor="#6b5a60">
		<td width="160" style="height:1px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
		<td width="522" valign="top" rowspan="2">		
		<!--body content-->		
			<!--cover-->		
		<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#B6A8AD">			
			<tr><td colspan="3" style="padding-left:12px; "><img src="hinh-thoi-trang/password-hp.gif" width="400" height="40"></td></tr>
			<tr>
				<!--col left-->		
				<td valign="top" height=680>
					<table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width=100% height="150">
						<tr>
							<td style="padding: 0 20 0 20" valign=top>							
								<table cellpadding="0" cellspacing="0" border="0">
								<% If strMes <> "" Then%>
									<tr><td colspan="3"><img src="hinh-thoi-trang/de_clear.gif" width="1" height="10" border="0"></td></tr>	
									<tr><td colspan="3" class="text"><P class="paging"><%= Icon %>&nbsp;&nbsp;&nbsp;<%=strMes%></P></td></tr>
								<%	End If%>
								<%If hideform = False Then%>								
								<form name="frm" action="pass.asp?ckid=<%=ckid%>" method="post" onSubmit="return isValid(this)">	
								<input name="d" type="hidden" value="<%= Destination%>">
								<input name="qs" type="hidden" value="<%= strQuery%>">											
								<tr><td colspan="3"><img src="de_clear" width="1" height="20" border="0"></td></tr>																	
								<tr>									
									<td nowrap class="paging"><b>E-mail của bạn</b>:&nbsp;</td>
									<td><input type="text" name="rqfrom_em" value="<%= iv_Retemail %>" id="E-mail của bạn" size="30"  style="Width:200px;" class="txtInput"></td>
									<td>&nbsp;<input type="submit" name="act" value="GỞI EMAIL" class="btnGo"></td>
								</tr>					
								</form>								
								<%else%>
								<tr><td align="right" colspan="3"><br><br>
									<a href="login.asp?ckid=<%= ckid%>&<%=ref%>"><img src="hinh-thoi-trang/btn_continue.gif" border="0"></a>
								</td></tr>
								<%end if%>	
														
								</table>										
							</td>
						</tr>
					</table>						 
				</td>
				<!--/col left-->							
			</tr>
		</table>
			<!--/text-->		
		<!--/body content-->
		</td>
		<td width="308" style="width:0px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
	</tr>
	<!--main body-->
	<tr bgcolor="#ffffff">
		<td bgcolor="#000000" width="160" valign="top">
		<!--#include file="system/left.asp" -->
		</td>
		<!--missing 1 TD because of Rowspan-->		
		<td bgcolor="#614B00" width="308" valign="top">
			<table border="0" cellpadding="0" cellspacing="0" width="308" align="right">
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<form action="search.asp?ckid=<%=ckid%>" method="post">
				<tr bgcolor="#8D0045">
					<td width="154" valign="top" height="33" ><input type="text" name="search" value="Tìm kiếm" size="22" class="txtSearch"></td>
					<td width="154" valign="top" style="padding-top:7px;padding-left:3px;"><input type="submit" name="go" value="TÌM" class="btnGo"></td>
				</tr>
				</form>
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<!--Ads Starts-->
				<tr><td align="center" colspan="2"><img src="hinh-quang-cao/neimanmarcus350x250.jpg" alt="" width="300" height="250" border="0"></td></tr>
				<!--Ads Ends-->
			</table>
		</td>
	</tr>
	<!--/main body-->
	<!--#include file="system/bottom.asp" -->
</table>
</div>
<div id="bt2"><img src="hinh-thoi-trang/bg_bottom.gif" width="1049" height="20"></div>
</div>
</body>
</html>
